package com.qf.admin.service.impl;


import com.qf.admin.dao.ISys_UserDao;
import com.qf.admin.dao.impl.Sys_UserDaoImpl;
import com.qf.admin.domain.Sys_User;
import com.qf.admin.service.ISys_UserService;

import java.util.List;

public class Sys_UserService implements ISys_UserService {

    private ISys_UserDao userDao = new Sys_UserDaoImpl();


    @Override
    public void addGetSys_UserData(String sname, String password) {
            userDao.addGetSys_UserData(sname,password);
        
    }

    @Override
    public void deleteSys_UserData(int id) {
            userDao.deleteSys_UserData(id);
    }

    @Override
    public List<Sys_User> getSys_User() {
        List<Sys_User> sys_user = userDao.getSys_User();
        return sys_user;
    }

    @Override
    public Sys_User checkSys_UserNamePassword(String userName, String password) {
        Sys_User sysUser = userDao.checkSys_UserNamePassword(userName, password);
        return sysUser;
    }

    @Override
    public Sys_User getUser(int userId) {
        return userDao.getUser(userId);
    }
}

